package com.ruoyi.system.service.construction.impl;

import com.ruoyi.system.domain.construction.CaseInfo;
import com.ruoyi.system.domain.construction.ConstructionInfo;
import com.ruoyi.system.domain.construction.FunctionalZone;
import com.ruoyi.system.domain.construction.ProjectInstruction;
import com.ruoyi.system.mapper.construction.CaseConstructionMapper;
import com.ruoyi.system.service.construction.CaseConstructionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CaseConstructionServiceImpl implements CaseConstructionService {

    @Autowired
    private CaseConstructionMapper caseConstructionMapper;

    @Override
    public List<ConstructionInfo> OneConstructionInfoList(ConstructionInfo constructionInfo) {
        return caseConstructionMapper.OneConstructionInfoList(constructionInfo);
    }

    @Override
    public ConstructionInfo OnecaseInfoById(Long constructionId) {
        return caseConstructionMapper.OnecaseInfoById(constructionId);
    }

    @Override
    public List<CaseInfo> getCasefindAll(CaseInfo caseInfo) {
        return caseConstructionMapper.getCasefindAll(caseInfo);
    }

    @Override
    public CaseInfo selectCaseInfoById(Integer caseId) {
        return caseConstructionMapper.selectCaseInfoById(caseId);
    }

    @Override
    public int insertCaseInfo(CaseInfo caseInfo) {
        return caseConstructionMapper.insertCaseInfo(caseInfo);
    }

    @Override
    public int updateCaseInfo(CaseInfo caseInfo) {
        return caseConstructionMapper.updateCaseInfo(caseInfo);
    }

    @Override
    public int deleteCaseInfoByIds(Integer[] caseId) {
        return caseConstructionMapper.deleteCaseInfoByIds(caseId);
    }




    //    以上是施工案例和施工对的

    //   <!--TODO 这是 是 施工案例 功能区的 -->



    @Override
    public FunctionalZone selectFunctionalZoneById(Integer functionalId) {
        return caseConstructionMapper.selectFunctionalZoneById(functionalId);
    }

    @Override
    public List<FunctionalZone> functionalZoneZi(Integer caseId) {
        return caseConstructionMapper.functionalZoneZi(caseId);
    }

    @Override
    public List<FunctionalZone> selectFunctionalZoneList(FunctionalZone functionalZone) {
        return caseConstructionMapper.selectFunctionalZoneList(functionalZone);
    }

    @Override
    public int insertFunctionalZone(FunctionalZone functionalZone) {
        return caseConstructionMapper.insertFunctionalZone(functionalZone);
    }

    @Override
    public int updateFunctionalZone(FunctionalZone functionalZone) {
        return caseConstructionMapper.updateFunctionalZone(functionalZone);
    }

    @Override
    public int deleteFunctionalZoneByIds(Integer[] functionalId) {
        return caseConstructionMapper.deleteFunctionalZoneByIds(functionalId);
    }

    //   <!--TODO 这是 是 施工案例 说明区的 -->

    @Override
    public ProjectInstruction selectProjectInstructionById(Integer projectId) {
        return caseConstructionMapper.selectProjectInstructionById(projectId);
    }

    @Override
    public List<ProjectInstruction> selectProjectInstructionList(Integer caseId) {
        return caseConstructionMapper.selectProjectInstructionList(caseId);
    }

    @Override
    public int insertProjectInstruction(ProjectInstruction projectInstruction) {
        return caseConstructionMapper.insertProjectInstruction(projectInstruction);
    }

    @Override
    public int updateProjectInstruction(ProjectInstruction projectInstruction) {
        return caseConstructionMapper.updateProjectInstruction(projectInstruction);
    }

    @Override
    public int deleteProjectInstructionByIds(Integer[] projectId) {
        return caseConstructionMapper.deleteProjectInstructionByIds(projectId);
    }
}
